/***********************************************************************************
@file  
@author 
@brief  
***********************************************************************************/
#ifndef _MID_CAPTURE_H
#define _MID_CAPTURE_H
/* Private includes ----------------------------------------------------------*/
#include "main.h"
/* Private define ------------------------------------------------------------*/
#define IR_PORT			         GpioPortA
#define IR_PIN           		 GpioPin15
#define IR_IN()                  Gpio_GetInputIO(IR_PORT,IR_PIN)  

#define KEY_FUNC    22 
#define KEY_MUTE    25

#define KEY_OK      28 
#define KEY_LEFT    8 
#define KEY_RIGHT   90 
#define KEY_UP      24 
#define KEY_DOWN    82

#define KEY_TEST    66
#define KEY_QUIT    13 

#define KEY_LOW     68 
#define KEY_HIGH    64
#define KEY_ADDR    7

#define KEY_RANGE   21 
#define KEY_UNIT    67  
#define KEY_PREC    9  

#define KEY_ZERO    69  
#define KEY_KUADU   70 
#define KEY_CALI    71  

#define BUT_FUNC    254
/* Private typedef -----------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function ----------------------------------------------------------*/
extern void infared_process(void);
extern void infared_init(void);
extern void infared_gpio_init(void);
extern void infared_gpio_deinit(void);
extern void infared_virtual_key(void);
#endif

/**************************** (C) COPYRIGHT CX*****END OF FILE**********************/

